package edu.scau.mis.system.service;


import edu.scau.mis.system.domain.Menu;
import edu.scau.mis.system.domain.Role;
import edu.scau.mis.system.domain.RoleMenu;

import java.util.List;

public interface  IRoleService {

    List<String> selectRoleKeysByUserId(Long userId);
    Role selectRoleById(Long roleId);
    List<Role> selectRoleList(Role role);

    List<Role> selectAllRole();
    int deleteRoleById(Long roleId);

    int insertRole(Role role);
    int updateRole(Role role);
    int batchRoleMenu(RoleMenu roleMenu);

    List<Menu> selectMenusByRoleId(Long roleId);
}
